package client;

import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;

public class ItemAvailable implements Runnable{
	String msg;
	public ItemAvailable(String msg)
	{
		this.msg = msg;
	}
	
	public void run() {
		if (!SwingUtilities.isEventDispatchThread())
			throw new IllegalStateException("Must use swing event thread");
		JOptionPane.showMessageDialog(null, msg, "Item avaliable", JOptionPane.INFORMATION_MESSAGE);
    }

}
